package com.app.vo;

import com.app.model.TCarousels;
import com.bben.common.util.JsonUtil;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.util.List;

@Getter
@Setter
@NoArgsConstructor
public class CarouselsVo {


    private Integer id;

    private String src;

    public static CarouselsVo assemblyData(TCarousels TCarousels){
        return JsonUtil.convert(TCarousels,CarouselsVo.class);
    }

    public static List<CarouselsVo> assemblyDataList(List<TCarousels> TCarouselsList){
        return JsonUtil.convertList(TCarouselsList,CarouselsVo.class);
    }


}
